package com.fyy.absfactory;

/**
 * @Author fyy
 * @Description
 * @Date 2020/7/23 10:01
 */
public class FactoryCreate {

    public static AbstractFactory getFactory(String type){
        if(type.equals("shape")){
            return new ShapeFactory();
        }
        if(type.equals("color")){
            return new ColorFactory();
        }
        return null;
    }

}
